package com.thinkgsp.jxc.persistence;

import java.sql.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.thinkgsp.jxc.model.CheckBill;
import com.thinkgsp.jxc.model.CheckBillDetail;
import com.thinkgsp.jxc.model.CheckResult;

/**
 * 库房盘点持久化类
 * @author evan
 *
 */
public interface CheckBillMapper {

	public CheckBill getBillById(@Param("billId")Long billId);
	
	public List<CheckBill> getBillList(@Param("begDate")Date begDate,@Param("endDate")Date endDate,@Param("deptId")Integer deptId);
	
	public List<CheckBillDetail> getCheckBillDetail(@Param("id")Long billId);
	
	public void insertCheckBill(CheckBill bill);
	
	public void updateCheckBill(CheckBill bill);
	
	public void deleteCheckBill(@Param("billId")Long billId);
	
	public void insertBillDetail(CheckBillDetail detail);
	
	public void deleteBillDetail(@Param("id")Long id);
	
	public void deleteBillDetailByBillId(@Param("billId")Long billId);
	
	public void updateJxcBill(@Param("billId")Long billId,@Param("jxcBillId")Long jxcBillId);
	
	public void deleteJxcBill(@Param("billId")Long billId);
	
	public List<CheckResult> testCalc(@Param("billId")Long billId);
	
	public List<CheckResult> findOmited(@Param("billId")Long billId);
}
